package top.sdaily.web.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * Created by soya on 2017/1/9.
 */
@Table(name = "sys_role_menu")
public class RoleMenu implements Serializable {

    @Id
    private String pkid;

    @Column(name = "role_id")
    private String roleId;

    @Column(name = "menu_id")
    private String menuId;

    @Transient
    private String menuName;

    @Transient
    private List<RoleMenuRight> roleMenuRights;

    public String getPkid() {
        return pkid;
    }

    public void setPkid(String pkid) {
        this.pkid = pkid;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public List<RoleMenuRight> getRoleMenuRights() {
        return roleMenuRights;
    }

    public void setRoleMenuRights(List<RoleMenuRight> roleMenuRights) {
        this.roleMenuRights = roleMenuRights;
    }
}
